package com.csii.adhoc.dataready.mapper;

import com.csii.adhoc.dataready.TDataMergeDtlPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TDataMergeDtlMapper {
    int deleteByPrimaryKey(@Param("relationId")String relationId, @Param("masterFld") String masterFld, @Param("slaveFld") String slaveFld);

    int deleteByMergeId(String relationId);

    int insertOneTDataMergeDtl(TDataMergeDtlPo record);

    int insertListTDataMergeDtl(List<TDataMergeDtlPo> record);

    int insertSelective(TDataMergeDtlPo record);

    TDataMergeDtlPo selectByPrimaryKey(String modelId);

    int updateByPrimaryKeySelective(TDataMergeDtlPo record);

    int updateByPrimaryKey(TDataMergeDtlPo record);

    List<TDataMergeDtlPo> selectListTDataMergeDtl(String type);

    List<TDataMergeDtlPo> selectListTDataMergeDtlByIds(List list);

    List<Map<String,String>> selectTableIdByModelId(String modelId) ;

    TDataMergeDtlPo selectOneTDataMergeDtl(String modelId, String type);

    Map selCustDataDbTable(String model_id);
}